package com.zmn.oms.services.impl.grab;

import com.zmn.oms.model.entity.grab.NonGridGrabOrder;
import com.zmn.oms.model.query.grab.NonGridGrabOrderQuery;
import com.zmn.oms.persistence.interfaces.grab.NonGridGrabOrderDao;
import com.zmn.oms.services.interfaces.grab.NonGridGrabOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 类描述：无网格抢单业务处理
 *
 * @author wangxiaokun
 * @since 2022/07/26 10:26
 */
@Service
public class NonGridGrabOrderServiceImpl implements NonGridGrabOrderService {

    @Resource
    private NonGridGrabOrderDao nonGridGrabOrderDao;

    @Override
    public List<NonGridGrabOrder> listByQuery(NonGridGrabOrderQuery nonGridGrabOrderQuery) {
        return nonGridGrabOrderDao.listByQuery(nonGridGrabOrderQuery);
    }

    @Override
    public void updateByKey(NonGridGrabOrder nonGridGrabOrder) {
        nonGridGrabOrderDao.updateByKey(nonGridGrabOrder);
    }

    @Override
    public void batchInsert(List<NonGridGrabOrder> nonGridGrabOrderList) {
        nonGridGrabOrderDao.batchInsert(nonGridGrabOrderList);
    }

    @Override
    public void deleteByQuery(NonGridGrabOrderQuery nonGridGrabOrderQuery) {
        nonGridGrabOrderDao.deleteByQuery(nonGridGrabOrderQuery);
    }
}
